package com.group.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author group
 * @since 2021-09-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("p_user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户主键
     */
      @TableId(value = "userId", type = IdType.ID_WORKER)
    private Integer userid;

    /**
     * 账号
     */
    @TableField("accountNumber")
    private String accountnumber;

    /**
     * 密码
     */
    private String password;

    /**
     * 昵称
     */
    @TableField("nickName")
    private String nickname;

    /**
     * 姓名
     */
    private String name;

    /**
     * 学号
     */
    @TableField("studenId")
    private String studenid;

    /**
     * 电话
     */
    private String telephone;

    /**
     * 性别
     */
    private Integer sex;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 用户权限（2:管理员 1:普通用户）
     */
    @TableField("userCategory")
    private Integer usercategory;

    /**
     * 删除标记
     */
    @TableField("deletedState")
    private Integer deletedstate;


}
